package cn.tedu.ximart.server.pojo.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;

public class AttributeTemplate implements Serializable {

  private Long id;
  private String name;
  private String pinyin;
  private String keywords;
  private Integer sort;
  private LocalDateTime gmtCreate;
  private LocalDateTime gmtModified;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    AttributeTemplate that = (AttributeTemplate) o;
    return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(pinyin, that.pinyin) && Objects.equals(keywords, that.keywords) && Objects.equals(sort, that.sort) && Objects.equals(gmtCreate, that.gmtCreate) && Objects.equals(gmtModified, that.gmtModified);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, pinyin, keywords, sort, gmtCreate, gmtModified);
  }

  @Override
  public String toString() {
    return "AttbuteTemplate{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", pinyin='" + pinyin + '\'' +
            ", keywords='" + keywords + '\'' +
            ", sort=" + sort +
            ", gmtCreate=" + gmtCreate +
            ", gmtModified=" + gmtModified +
            '}';
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getPinyin() {
    return pinyin;
  }

  public void setPinyin(String pinyin) {
    this.pinyin = pinyin;
  }

  public String getKeywords() {
    return keywords;
  }

  public void setKeywords(String keywords) {
    this.keywords = keywords;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public LocalDateTime getGmtCreate() {
    return gmtCreate;
  }

  public void setGmtCreate(LocalDateTime gmtCreate) {
    this.gmtCreate = gmtCreate;
  }

  public LocalDateTime getGmtModified() {
    return gmtModified;
  }

  public void setGmtModified(LocalDateTime gmtModified) {
    this.gmtModified = gmtModified;
  }
}
